package com.winter.mapper;

import com.winter.model.NewResource;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

@Repository
public interface NewResourceMapper {
    int deleteByPrimaryKey(String id);

    int insert(NewResource record);

    int insertSelective(NewResource record);

    NewResource selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(NewResource record);

    int updateByPrimaryKey(NewResource record);

    List<NewResource> courseWareList(@Param("type") Integer type, @Param("keyword") String keyword);
}